/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package Zoomanagement;

/**
 * Logistics Class - Manages transportation details for animal movements
 * @author ashongtical
 */
public class Logistics {
    private Item vehicle;
    private Item fuel;
    private String[] caretakers;

    public Logistics(Item vehicle, Item fuel, String[] caretakers) {
        this.vehicle = vehicle;
        this.fuel = fuel;
        this.caretakers = caretakers;
    }

    public void display() {
        System.out.println("--- Transportation Details ---");
        vehicle.display();
        fuel.display();
        System.out.println("Caretakers: " + String.join(", ", caretakers));
        System.out.printf("Total Cost: RMB%.2f\n",
                vehicle.getPrice() + fuel.getPrice());
    }
}
